from geometry.area import square, rectangle, circle, triangle
from geometry.surface_area import cube, cuboid, sphere, cylinder
from geometry.volume import cube, cuboid, sphere, cylinder

def main():
    # 计算平面图形的面积
    square_area = square.square_area(5)
    rectangle_area = rectangle.rectangle_area(4, 6)
    circle_area = circle.circle_area(3)
    triangle_area = triangle.triangle_area(4, 5)

    print(f"正方形面积: {square_area}")
    print(f"长方形面积: {rectangle_area}")
    print(f"圆形面积: {circle_area:.2f}")
    print(f"三角形面积: {triangle_area:.2f}")

    # 计算3D图形的表面积
    cube_surface_area = cube.cube_surface_area(5)
    cuboid_surface_area = cuboid.cuboid_surface_area(4, 6, 8)
    sphere_surface_area = sphere.sphere_surface_area(3)
    cylinder_surface_area = cylinder.cylinder_surface_area(3, 7)

    print(f"立方体表面积: {cube_surface_area}")
    print(f"长方体表面积: {cuboid_surface_area}")
    print(f"球体表面积: {sphere_surface_area:.2f}")
    print(f"圆柱体表面积: {cylinder_surface_area:.2f}")

    # 计算3D图形的体积
    cube_volume = cube.cube_volume(5)
    cuboid_volume = cuboid.cuboid_volume(4, 6, 8)
    sphere_volume = sphere.sphere_volume(3)
    cylinder_volume = cylinder.cylinder_volume(3, 7)

    print(f"立方体体积: {cube_volume}")
    print(f"长方体体积: {cuboid_volume}")
    print(f"球体体积: {sphere_volume:.2f}")
    print(f"圆柱体体积: {cylinder_volume:.2f}")

if __name__ == "__main__":
    main()